package com.xqt.controller;

import com.xqt.entity.sys.SysMenu;
import com.xqt.service.SysMenuService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * Created by Administrator on 2017/3/16.
 */
@RestController
@RequestMapping("/sys/menu")
public class SysMenuController {

    // 注入系统菜单管理service
    @Autowired
    private SysMenuService sysMenuService;

    @RequestMapping("/count")
    public SysMenu count(){
        SysMenu menu=sysMenuService.queryById("12130334-981b-40f1-b89d-a190902ad042");
        return  menu;
    }



}
